home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18171 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  2. Path: news.hawaii.edu!phinely
  3. From: phinely@Hawaii.Edu (Peter Hinely)
  4. Subject: Re: Will Java kill C++?
  5. X-Nntp-Posting-Host: uhunix4.its.hawaii.edu
  6. Message-ID: <Dq3984.KBD@news.hawaii.edu>
  7. Sender: news@news.hawaii.edu
  8. Organization: University of Hawaii
  9. References: <3134D499.653E@ix.netcom.com> <BLUME.96Apr16103345@zayin.cs.princeton.edu> <3175F966.167EB0E7@fernuni-hagen.de> <3176B6C5.F4D@concentric.net>
  10. Date: Fri, 19 Apr 1996 02:50:28 GMT
  11.  
  12. In article <3176B6C5.F4D@concentric.net>,
  13. Alan L. Lovejoy <alovejoy@concentric.net> wrote:
  14. >
  15. >The central point of object-oriented programming is...objects.  That is,
  16. >the unification of value and behavior into an encapsulated object.
  17. >
  18. >--Alan
  19.  
  20. Behavior (implemented as methods) need not be encapsulated into objects
  21. for a language to be object-oriented.  This corresponds to real life where
  22. most objects do not have methods encapsulated into them.  Does a ball know
  23. how to throw itself?  No, it is thrown by something else.  This can be
  24. modeled in a language via generic functions which dispatch to the
  25. appropriate method according to the argument list passed to it. 
  26.  
  27.   throw( <ball> )
  28.   throw( <something-else> )
  29.  
  30.  
  31.  
  32.  
  33.